package hong.jun.cfg;


/**
 * mongodb配置设置
 * 
 * @author zhaowei
 * @create 2019年10月7日 下午10:00:10
 * @desc
 */
public class MongoSettingsProperties {
	// mongo uri
	private String uri;
	// 链接超时时间
	private int conntectTimeout;
	// read数据超时时间
	private int socketTimeout;
	// 长链接的最大等待时间
	private int maxWaitTimeout;
	// 每个地址最大请求数
	private int connectionsPerhost;
	// 链接最大闲置时间
	private int connectionsIdleTime;
	// 线程队列数
	private int allowedToblockForConnectionMultipier;

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public int getConntectTimeout() {
		return conntectTimeout;
	}

	public void setConntectTimeout(int conntectTimeout) {
		this.conntectTimeout = conntectTimeout;
	}

	public int getSocketTimeout() {
		return socketTimeout;
	}

	public void setSocketTimeout(int socketTimeout) {
		this.socketTimeout = socketTimeout;
	}

	public int getMaxWaitTimeout() {
		return maxWaitTimeout;
	}

	public void setMaxWaitTimeout(int maxWaitTimeout) {
		this.maxWaitTimeout = maxWaitTimeout;
	}

	public int getConnectionsPerhost() {
		return connectionsPerhost;
	}

	public void setConnectionsPerhost(int connectionsPerhost) {
		this.connectionsPerhost = connectionsPerhost;
	}

	public int getConnectionsIdleTime() {
		return connectionsIdleTime;
	}

	public void setConnectionsIdleTime(int connectionsIdleTime) {
		this.connectionsIdleTime = connectionsIdleTime;
	}

	public int getAllowedToblockForConnectionMultipier() {
		return allowedToblockForConnectionMultipier;
	}

	public void setAllowedToblockForConnectionMultipier(int allowedToblockForConnectionMultipier) {
		this.allowedToblockForConnectionMultipier = allowedToblockForConnectionMultipier;
	}

}
